package org.ycty.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.ycty.entity.Swt;

public class UpInfo extends HttpServlet {

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {

		doPost(request, response);
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		int id = Integer.parseInt(request.getParameter("id"));
		String pathname = request.getParameter("pathname");
		String webname = request.getParameter("webname");
		String weburl = request.getParameter("weburl");
		String swtjs = request.getParameter("swtjs");
		String bmgs = request.getParameter("bmgs");
		String khdm = request.getParameter("khdm");
		String other = null;
		
		Swt swt = new Swt();
		swt.setId(id);
		swt.setPathname(pathname);
		swt.setWebname(webname);
		swt.setWeburl(weburl);
		swt.setSwtjs(swtjs);
		swt.setBmgs(bmgs);
		swt.setKhdm(khdm);
		swt.setOther(other);
		
		Boolean b = new org.ycty.deale.UpInfo().upinfo(swt);
		
	}

}
